<template>
  <div class="classroom">
    <el-tabs v-model="activeName" @tab-click="tabClick">
      <el-tab-pane label="已购买" name="1">
        <manage v-if="activeName === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="未购买" name="2">
        <recommend v-if="activeName === '2'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>

import Manage from './buypackage/classpackage'
import Recommend from './buypackage/unclasspackage'
export default {
  components: {
    Recommend,
    Manage
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
    tabClick() {
      console.log('tab')
    }
  }
}
</script>

<style lang="scss" scoped>
.classroom {
  padding: 0px 20px;
}
</style>

